#ifndef UTILS_H_
#define UTILS_H_

#include "global.h"

///list operation
void insertElem(struct StListHead&,int);
int getElem(struct StListHead&);
int removeElem(struct StListHead&,int);
///delay function
int needDelay(int);
void myDelay(int);
///find special device through typeID or operID
int findByID(int,int);
int findByPoint(unsigned char*,int);
///caculate checksum
unsigned char creatChecksum(int);
bool judgeCheckSum(unsigned char*,int);
///format change function
unsigned char charToUnsigned(char**);
///send to web-service
void sendService(int);

#endif

